Optimal. Leaf size=437 \[ \frac {i (d \sec (e+f x))^{2/3}}{4 f (a+i a \tan (e+f x))^{7/3}}-\frac {5 x (d \sec (e+f x))^{2/3}}{72\ 2^{2/3} a^{5/3} \sqrt [3]{a-i a \tan (e+f x)} \sqrt [3]{a+i a \tan (e+f x)}}+\frac {5 i \text {ArcTan}\left (\frac {\sqrt [3]{a}+2^{2/3} \sqrt [3]{a-i a \tan (e+f x)}}{\sqrt {3} \sqrt [3]{a}}\right ) (d \sec (e+f x))^{2/3}}{12\ 2^{2/3} \sqrt {3} a^{5/3} f \sqrt [3]{a-i a \tan (e+f x)} \sqrt [3]{a+i a \tan (e+f x)}}-\frac {5 i \log (\cos (e+f x)) (d \sec (e+f x))^{2/3}}{72\ 2^{2/3} a^{5/3} f \sqrt [3]{a-i a \tan (e+f x)} \sqrt [3]{a+i a \tan (e+f x)}}-\frac {5 i \log \left (\sqrt [3]{2} \sqrt [3]{a}-\sqrt [3]{a-i a \tan (e+f x)}\right ) (d \sec (e+f x))^{2/3}}{24\ 2^{2/3} a^{5/3} f \sqrt [3]{a-i a \tan (e+f x)} \sqrt [3]{a+i a \tan (e+f x)}}+\frac {5 i (d \sec (e+f x))^{2/3}}{24 f \sqrt [3]{a+i a \tan (e+f x)} \left (a^2+i a^2 \tan (e+f x)\right )} \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.28, antiderivative size = 437, normalized size of antiderivative = 1.00, number of steps
used = 9, number of rules used = 8, integrand size = 30, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.267, Rules used = {3586, 3603,
3568, 44, 59, 631, 210, 31} \begin {gather*} \frac {5 i (d \sec (e+f x))^{2/3} \text {ArcTan}\left (\frac {\sqrt [3]{a}+2^{2/3} \sqrt [3]{a-i a \tan (e+f x)}}{\sqrt {3} \sqrt [3]{a}}\right )}{12\ 2^{2/3} \sqrt {3} a^{5/3} f \sqrt [3]{a-i a \tan (e+f x)} \sqrt [3]{a+i a \tan (e+f x)}}-\frac {5 x (d \sec (e+f x))^{2/3}}{72\ 2^{2/3} a^{5/3} \sqrt [3]{a-i a \tan (e+f x)} \sqrt [3]{a+i a \tan (e+f x)}}-\frac {5 i (d \sec (e+f x))^{2/3} \log \left (\sqrt [3]{2} \sqrt [3]{a}-\sqrt [3]{a-i a \tan (e+f x)}\right )}{24\ 2^{2/3} a^{5/3} f \sqrt [3]{a-i a \tan (e+f x)} \sqrt [3]{a+i a \tan (e+f x)}}-\frac {5 i (d \sec (e+f x))^{2/3} \log (\cos (e+f x))}{72\ 2^{2/3} a^{5/3} f \sqrt [3]{a-i a \tan (e+f x)} \sqrt [3]{a+i a \tan (e+f x)}}+\frac {5 i (d \sec (e+f x))^{2/3}}{24 f \sqrt [3]{a+i a \tan (e+f x)} \left (a^2+i a^2 \tan (e+f x)\right )}+\frac {i (d \sec (e+f x))^{2/3}}{4 f (a+i a \tan (e+f x))^{7/3}} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 31
Rule 44
Rule 59
Rule 210
Rule 631
Rule 3568
Rule 3586
Rule 3603
Rubi steps
\begin {align*} \int \frac {(d \sec (e+f x))^{2/3}}{(a+i a \tan (e+f x))^{7/3}} \, dx &=\frac {(d \sec (e+f x))^{2/3} \int \frac {\sqrt [3]{a-i a \tan (e+f x)}}{(a+i a \tan (e+f x))^2} \, dx}{\sqrt [3]{a-i a \tan (e+f x)} \sqrt [3]{a+i a \tan (e+f x)}}\\ &=\frac {(d \sec (e+f x))^{2/3} \int \cos ^4(e+f x) (a-i a \tan (e+f x))^{7/3} \, dx}{a^4 \sqrt [3]{a-i a \tan (e+f x)} \sqrt [3]{a+i a \tan (e+f x)}}\\ &=\frac {\left (i a (d \sec (e+f x))^{2/3}\right ) \text {Subst}\left (\int \frac {1}{(a-x)^3 (a+x)^{2/3}} \, dx,x,-i a \tan (e+f x)\right )}{f \sqrt [3]{a-i a \tan (e+f x)} \sqrt [3]{a+i a \tan (e+f x)}}\\ &=\frac {i (d \sec (e+f x))^{2/3}}{4 f (a+i a \tan (e+f x))^{7/3}}+\frac {\left (5 i (d \sec (e+f x))^{2/3}\right ) \text {Subst}\left (\int \frac {1}{(a-x)^2 (a+x)^{2/3}} \, dx,x,-i a \tan (e+f x)\right )}{12 f \sqrt [3]{a-i a \tan (e+f x)} \sqrt [3]{a+i a \tan (e+f x)}}\\ &=\frac {i (d \sec (e+f x))^{2/3}}{4 f (a+i a \tan (e+f x))^{7/3}}+\frac {5 i (d \sec (e+f x))^{2/3}}{24 a f (a+i a \tan (e+f x))^{4/3}}+\frac {\left (5 i (d \sec (e+f x))^{2/3}\right ) \text {Subst}\left (\int \frac {1}{(a-x) (a+x)^{2/3}} \, dx,x,-i a \tan (e+f x)\right )}{36 a f \sqrt [3]{a-i a \tan (e+f x)} \sqrt [3]{a+i a \tan (e+f x)}}\\ &=\frac {i (d \sec (e+f x))^{2/3}}{4 f (a+i a \tan (e+f x))^{7/3}}+\frac {5 i (d \sec (e+f x))^{2/3}}{24 a f (a+i a \tan (e+f x))^{4/3}}-\frac {5 x (d \sec (e+f x))^{2/3}}{72\ 2^{2/3} a^{5/3} \sqrt [3]{a-i a \tan (e+f x)} \sqrt [3]{a+i a \tan (e+f x)}}-\frac {5 i \log (\cos (e+f x)) (d \sec (e+f x))^{2/3}}{72\ 2^{2/3} a^{5/3} f \sqrt [3]{a-i a \tan (e+f x)} \sqrt [3]{a+i a \tan (e+f x)}}+\frac {\left (5 i (d \sec (e+f x))^{2/3}\right ) \text {Subst}\left (\int \frac {1}{\sqrt [3]{2} \sqrt [3]{a}-x} \, dx,x,\sqrt [3]{a-i a \tan (e+f x)}\right )}{24\ 2^{2/3} a^{5/3} f \sqrt [3]{a-i a \tan (e+f x)} \sqrt [3]{a+i a \tan (e+f x)}}+\frac {\left (5 i (d \sec (e+f x))^{2/3}\right ) \text {Subst}\left (\int \frac {1}{2^{2/3} a^{2/3}+\sqrt [3]{2} \sqrt [3]{a} x+x^2} \, dx,x,\sqrt [3]{a-i a \tan (e+f x)}\right )}{24 \sqrt [3]{2} a^{4/3} f \sqrt [3]{a-i a \tan (e+f x)} \sqrt [3]{a+i a \tan (e+f x)}}\\ &=\frac {i (d \sec (e+f x))^{2/3}}{4 f (a+i a \tan (e+f x))^{7/3}}+\frac {5 i (d \sec (e+f x))^{2/3}}{24 a f (a+i a \tan (e+f x))^{4/3}}-\frac {5 x (d \sec (e+f x))^{2/3}}{72\ 2^{2/3} a^{5/3} \sqrt [3]{a-i a \tan (e+f x)} \sqrt [3]{a+i a \tan (e+f x)}}-\frac {5 i \log (\cos (e+f x)) (d \sec (e+f x))^{2/3}}{72\ 2^{2/3} a^{5/3} f \sqrt [3]{a-i a \tan (e+f x)} \sqrt [3]{a+i a \tan (e+f x)}}-\frac {5 i \log \left (\sqrt [3]{2} \sqrt [3]{a}-\sqrt [3]{a-i a \tan (e+f x)}\right ) (d \sec (e+f x))^{2/3}}{24\ 2^{2/3} a^{5/3} f \sqrt [3]{a-i a \tan (e+f x)} \sqrt [3]{a+i a \tan (e+f x)}}-\frac {\left (5 i (d \sec (e+f x))^{2/3}\right ) \text {Subst}\left (\int \frac {1}{-3-x^2} \, dx,x,1+\frac {2^{2/3} \sqrt [3]{a-i a \tan (e+f x)}}{\sqrt [3]{a}}\right )}{12\ 2^{2/3} a^{5/3} f \sqrt [3]{a-i a \tan (e+f x)} \sqrt [3]{a+i a \tan (e+f x)}}\\ &=\frac {i (d \sec (e+f x))^{2/3}}{4 f (a+i a \tan (e+f x))^{7/3}}+\frac {5 i (d \sec (e+f x))^{2/3}}{24 a f (a+i a \tan (e+f x))^{4/3}}-\frac {5 x (d \sec (e+f x))^{2/3}}{72\ 2^{2/3} a^{5/3} \sqrt [3]{a-i a \tan (e+f x)} \sqrt [3]{a+i a \tan (e+f x)}}+\frac {5 i \tan ^{-1}\left (\frac {1+\frac {2^{2/3} \sqrt [3]{a-i a \tan (e+f x)}}{\sqrt [3]{a}}}{\sqrt {3}}\right ) (d \sec (e+f x))^{2/3}}{12\ 2^{2/3} \sqrt {3} a^{5/3} f \sqrt [3]{a-i a \tan (e+f x)} \sqrt [3]{a+i a \tan (e+f x)}}-\frac {5 i \log (\cos (e+f x)) (d \sec (e+f x))^{2/3}}{72\ 2^{2/3} a^{5/3} f \sqrt [3]{a-i a \tan (e+f x)} \sqrt [3]{a+i a \tan (e+f x)}}-\frac {5 i \log \left (\sqrt [3]{2} \sqrt [3]{a}-\sqrt [3]{a-i a \tan (e+f x)}\right ) (d \sec (e+f x))^{2/3}}{24\ 2^{2/3} a^{5/3} f \sqrt [3]{a-i a \tan (e+f x)} \sqrt [3]{a+i a \tan (e+f x)}}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A]
time = 1.99, size = 240, normalized size = 0.55 \begin {gather*} \frac {e^{-2 i (e+f x)} \left (9 i+33 i e^{2 i (e+f x)}+24 i e^{4 i (e+f x)}-10 e^{4 i (e+f x)} \sqrt [3]{1+e^{2 i (e+f x)}} f x-10 i \sqrt {3} e^{4 i (e+f x)} \sqrt [3]{1+e^{2 i (e+f x)}} \text {ArcTan}\left (\frac {1+2 \sqrt [3]{1+e^{2 i (e+f x)}}}{\sqrt {3}}\right )-15 i e^{4 i (e+f x)} \sqrt [3]{1+e^{2 i (e+f x)}} \log \left (1-\sqrt [3]{1+e^{2 i (e+f x)}}\right )\right ) \sec ^2(e+f x) (d \sec (e+f x))^{2/3}}{144 f (a+i a \tan (e+f x))^{7/3}} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [F]
time = 0.33, size = 0, normalized size = 0.00 \[\int \frac {\left (d \sec \left (f x +e \right )\right )^{\frac {2}{3}}}{\left (a +i a \tan \left (f x +e \right )\right )^{\frac {7}{3}}}\, dx\]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [B] Both result and optimal contain complex but leaf count of result is larger than
twice the leaf count of optimal. 4194 vs. \(2 (344) = 688\).
time = 0.70, size = 4194, normalized size = 9.60 \begin {gather*} \text {Too large to display} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A]
time = 0.46, size = 556, normalized size = 1.27 \begin {gather*} \frac {{\left (48 \, a^{3} f \left (\frac {125 i \, d^{2}}{186624 \, a^{7} f^{3}}\right )^{\frac {1}{3}} e^{\left (6 i \, f x + 6 i \, e\right )} \log \left (-\frac {2}{5} \, {\left (72 i \, a^{3} f \left (\frac {125 i \, d^{2}}{186624 \, a^{7} f^{3}}\right )^{\frac {1}{3}} e^{\left (2 i \, f x + 2 i \, e\right )} - 5 \cdot 2^{\frac {1}{3}} \left (\frac {a}{e^{\left (2 i \, f x + 2 i \, e\right )} + 1}\right )^{\frac {2}{3}} \left (\frac {d}{e^{\left (2 i \, f x + 2 i \, e\right )} + 1}\right )^{\frac {2}{3}} {\left (e^{\left (2 i \, f x + 2 i \, e\right )} + 1\right )} e^{\left (2 i \, f x + 2 i \, e\right )}\right )} e^{\left (-2 i \, f x - 2 i \, e\right )}\right ) + 2^{\frac {1}{3}} \left (\frac {a}{e^{\left (2 i \, f x + 2 i \, e\right )} + 1}\right )^{\frac {2}{3}} \left (\frac {d}{e^{\left (2 i \, f x + 2 i \, e\right )} + 1}\right )^{\frac {2}{3}} {\left (8 i \, e^{\left (6 i \, f x + 6 i \, e\right )} + 19 i \, e^{\left (4 i \, f x + 4 i \, e\right )} + 14 i \, e^{\left (2 i \, f x + 2 i \, e\right )} + 3 i\right )} e^{\left (2 i \, f x + 2 i \, e\right )} - 24 \, {\left (-i \, \sqrt {3} a^{3} f + a^{3} f\right )} \left (\frac {125 i \, d^{2}}{186624 \, a^{7} f^{3}}\right )^{\frac {1}{3}} e^{\left (6 i \, f x + 6 i \, e\right )} \log \left (\frac {2}{5} \, {\left (5 \cdot 2^{\frac {1}{3}} \left (\frac {a}{e^{\left (2 i \, f x + 2 i \, e\right )} + 1}\right )^{\frac {2}{3}} \left (\frac {d}{e^{\left (2 i \, f x + 2 i \, e\right )} + 1}\right )^{\frac {2}{3}} {\left (e^{\left (2 i \, f x + 2 i \, e\right )} + 1\right )} e^{\left (2 i \, f x + 2 i \, e\right )} + 36 \, {\left (\sqrt {3} a^{3} f + i \, a^{3} f\right )} \left (\frac {125 i \, d^{2}}{186624 \, a^{7} f^{3}}\right )^{\frac {1}{3}} e^{\left (2 i \, f x + 2 i \, e\right )}\right )} e^{\left (-2 i \, f x - 2 i \, e\right )}\right ) - 24 \, {\left (i \, \sqrt {3} a^{3} f + a^{3} f\right )} \left (\frac {125 i \, d^{2}}{186624 \, a^{7} f^{3}}\right )^{\frac {1}{3}} e^{\left (6 i \, f x + 6 i \, e\right )} \log \left (\frac {2}{5} \, {\left (5 \cdot 2^{\frac {1}{3}} \left (\frac {a}{e^{\left (2 i \, f x + 2 i \, e\right )} + 1}\right )^{\frac {2}{3}} \left (\frac {d}{e^{\left (2 i \, f x + 2 i \, e\right )} + 1}\right )^{\frac {2}{3}} {\left (e^{\left (2 i \, f x + 2 i \, e\right )} + 1\right )} e^{\left (2 i \, f x + 2 i \, e\right )} - 36 \, {\left (\sqrt {3} a^{3} f - i \, a^{3} f\right )} \left (\frac {125 i \, d^{2}}{186624 \, a^{7} f^{3}}\right )^{\frac {1}{3}} e^{\left (2 i \, f x + 2 i \, e\right )}\right )} e^{\left (-2 i \, f x - 2 i \, e\right )}\right )\right )} e^{\left (-6 i \, f x - 6 i \, e\right )}}{48 \, a^{3} f} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F(-2)]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {Exception raised: SystemError} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {could not integrate} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [F]
time = 0.00, size = -1, normalized size = -0.00 \begin {gather*} \int \frac {{\left (\frac {d}{\cos \left (e+f\,x\right )}\right )}^{2/3}}{{\left (a+a\,\mathrm {tan}\left (e+f\,x\right )\,1{}\mathrm {i}\right )}^{7/3}} \,d x \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________